<style>
    .panel-post {
        position: relative;
    }

    .btn-post {
        position: absolute;
        right: 0;
        bottom: 10px;
    }

    .table>tbody>tr>th, .table>tbody>tr>td{
        text-align: center;
		vertical-align: middle;
    }
</style>
<div class="container mt-20">
    <div id="content-container">
        <div class="row">
            <div class="col-md-3">
                {include file="common/sidenav" /}
            </div>
            <div class="col-md-9">
                <div class="panel panel-default panel-user">
                    <div class="panel-body">
                        <div class="panel-post">
                            <h2 class="page-header">{$shebei.device_name}</h2>
                        </div>
						<div class="row">
							<table id="table" class="table table-bordered table-hover" width="100%">
							<tr><th>序号</th><th>视频时长</th><th>状态</th><th>创建时间</th><th>到期时间</th><th>操作</th></tr>
							{if $fileList}
							{volist name='fileList' id='item'}
								<tr>
									<td>{:$key+1}</td>
									<td>{$item.duration}秒</td>
									<td>{if $item.status eq 0}正常{elseif $item.status eq 1}正在上传{elseif $item.status eq 2}上传失败{elseif $item.status eq 3}已过期{elseif $item.status eq 4}已删除{/if}</td>
									<td>{:str_replace('T',' ',$item.createTime)}</td>
									<td>{:str_replace('T',' ',$item.expireTime)}</td>
									<td><a href="{:url('index/bankuai/download')}?id={$shebei.id}&fileId={$item['fileId']}" download='{$shebei.device_name}' class="btn btn-success btn-small">导出</a></td>
								</tr>
							{/volist}
							{/if}
							</table>
						</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
